#ifndef _H_RESSOURCE
#define _H_RESSOURCE

#define DFT_RES_VAL         10
#define RES_ESSENTIAL       -1

#define RES_TYPE_UNKNOWN    0
#define RES_TYPE_FONT       1
#define RES_TYPE_STYLESHEET 2

#include <string>

using namespace std;

class ressource{

    protected:
        int     validity;
        int     baseVal;
        int     type;
        string  RSname;

    public:
        ressource();
        ressource(int);
        virtual ~ressource();

        int     getType();
        string  getRSname();

        void    setValidity(int);

        virtual bool    update();
        void    reset();

};

#endif
